"""
Class definitions for I/O opreations
"""

# ======================================================================
class Navigation:
    """
    Navigation class for RINEX Observation (*.*n/p) files
    """
    def __init__(self, epoch = None, navigation = None, version = None):
        self.epoch           = epoch
        self.navigation      = navigation
        self.version         = version
# ======================================================================

# ======================================================================
class Navigation_DEPRECATED:
    """
    Broadcast Ephemeris in RINEX file
    """
    def __init__(self, PRN=None, epoch=None, roota=None, toe=None, 
                 m0=None, e=None, delta_n=None, smallomega=None, 
                 cus=None, cuc=None, crs=None, crc=None, cis=None, 
                 cic=None, idot=None, i0=None, bigomega0=None, 
                 bigomegadot=None):
        self.PRN         = PRN
        self.epoch       = epoch
        self.roota       = roota               # 轨道长半径的平方根
        self.toe         = toe                 # 星历表参考历元(s)  周内秒
        self.m0          = m0                  # 按参考历元toe计算的平近点角(rad)
        self.e           = e                   # 轨道偏心率
        self.delta_n     = delta_n             # 由精密星历计算得到的卫星平均角速度与按给定参数计算所得的平均角速度之差(rad/s)
        self.smallomega  = smallomega          # 近地点角距(rad)
        self.cus         = cus                 # 纬度幅角的正弦调和项改正的振幅(rad)
        self.cuc         = cuc                 # 纬度幅角的余弦调和项改正的振幅(rad)
        self.crs         = crs                 # 轨道半径的正弦调和项改正的振幅(m)
        self.crc         = crc                 # 轨道半径的余弦调和项改正的振幅(m)
        self.cis         = cis                 # 轨道倾角的正弦调和项改正的振幅(rad)
        self.cic         = cic                 # 轨道倾角的余弦调和项改正的振幅(rad)
        self.idot        = idot                # 轨道倾角变化率(rad/s)
        self.i0          = i0                  # 按参考历元toe计算的轨道倾角(rad)
        self.bigomega0   = bigomega0           # 按参考历元toe计算的升交点赤经(rad)
        self.bigomegadot = bigomegadot         # 升交点赤经变化率(rad/s)
# ======================================================================

